<!-- header -->
<jsp:include page="header.jsp">
	<jsp:param name="title" value="Create a New Prompt"/>
</jsp:include>
<!-- / header -->

<script type="text/javascript" src="http://js.nicedit.com/nicEdit-latest.js"></script>
<script type="text/javascript" src="js/create.js"></script>
<script type="text/javascript">
	bkLib.onDomLoaded( function() {
		new nicEditor({maxHeight:300,
			buttonList:['bold','italic','underline','strikeThrough','left','center','right','justify',
			            'ol','ul','fontSize','indent','outdent','forecolor']}).setPanel('post_panel').addInstance('post_text');
	});
</script>

<%
    if (request.getAttribute("userid") == null) {
        response.sendRedirect("/writeonproject/home");
    }
%>

<!-- content -->
	<div class="body7">
		<div class="main">
			<section id="content">
				<div class="wrapper">
					<article>
						<div class="pad1">
							<h2>Create a New Prompt</h2>
							<div id="create_story">
								<table class="post_table">
									<tr>
										<td class="post_col1">Image URL</td>
										<td><input class="post_field" type="text" value="" id="img_url"></input></td>
									</tr>
									<tr>
										<td></td>
										<td>
											<div id="post_panel"></div>
											<div id="post_text"></div>
										</td>										
									</tr>
								</table>
							</div>
							<br>
							<a href="#" class="button" id="post_story" onclick="createPrompt(); return false;"><span><span>Post</span></span></a>
						</div>
					</article>
				</div>
			</section>
		</div>
	</div>
	<!-- / content -->

<!-- footer -->
<jsp:include page="footer.jsp"/>
<!-- / footer -->